home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
os2
/
adaptor.zip
/
ADAPT.ZIP
/
adaptor
/
src
/
include
/
stringme.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-22
|
2KB
|
70 lines
# ifndef yyStringMem
# define yyStringMem
/* $Id: StringMem.h,v 1.5 1992/02/18 12:52:30 grosch rel $ */
/* $Log: StringMem.h,v $
* Revision 1.5 1992/02/18 12:52:30 grosch
* changed tString from unsigned char * to char *
*
* Revision 1.4 1992/01/30 13:12:51 grosch
* complete redesign: pointer instead of array index
*
* Revision 1.3 1991/11/21 14:28:16 grosch
* new version of RCS on SPARC
*
* Revision 1.2 91/07/17 17:23:48 grosch
* introduced ARGS trick for ANSI compatibility
*
* Revision 1.1 90/07/04 14:34:08 grosch
* introduced conditional include
*
* Revision 1.0 88/10/04 11:44:47 grosch
* Initial revision
*
*/
/* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
# include <stdio.h>
# include "ratc.h"
# ifdef __STDC__
# define ARGS(parameters) parameters
# else
# define ARGS(parameters) ()
# endif
typedef unsigned short * tStringRef;
extern tStringRef PutString ARGS((register char * s, register cardinal length));
/* stores string 's' in the string memory and */
/* returns a reference to the stored string */
extern void StGetString ARGS((register tStringRef r, register char * s));
/* returns the string 's' from the string memory */
/* which is referenced by 'r' */
/* extern cardinal LengthSt ARGS((register tStringRef r)); */
/* returns the length of the string 's' */
/* which is referenced by 'r' */
# define LengthSt(stringref) (* stringref)
extern bool IsEqualSt ARGS((tStringRef r, register char * s));
/* compares the string referenced by 'r' and */
/* the string 's' */
/* returns true if both are equal */
extern void WriteString ARGS((FILE * f, tStringRef r));
/* the string referenced by 'r' is printed on */
/* the file 'f' */
extern void WriteStringMemory ();
/* the contents of the string memory is printed */
/* on standard output */
extern void InitStringMemory ();
# endif